<?php include('config.php') ?>
<?php
session_start();
$survey_ID=$_SESSION['survey_ID'];
$sql = "SELECT * FROM `question` WHERE `survey_ID`='".$survey_ID."'";
$data = mysql_query($sql) or die('Error completing query: '.mysql_error());

echo "<table>";
echo "<tr>";
echo "<th>Question</th>";
echo "</tr>";
while($info = mysql_fetch_array( $data))
{
    echo "<tr>";
    echo "<td>".$info['question_text']."</td>";
    echo "<td><a href=\"#\" onClick=\"delete_question(".$info['ID'].")\">Delete</a>";
}
echo "</table>";
?>